<?php
/**
 * Created by C.
 * User: C
 * Date: 3.12.12
 * Time: 12:07
 */
class Person extends AppModel {
    //Kuna tabeli nimi pole sama mis controlleri nimi, siis määrame selle käsitsi
    public $useTable = "isik";
    public $hasMany = 'Package';


    public $validate = array(
        'Id' => array(
            'rule' => 'notEmpty',
            'message' => 'Isikukood puudu'
        )

    );


}